﻿using System.Windows;
using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.UnityExtensions;
using Microsoft.Practices.Unity;

namespace Trainning
{
    class Bootstrapper: UnityBootstrapper
    {
        protected override DependencyObject CreateShell()
        {
            Shell shell = Container.Resolve<Shell>();
            shell.Show();
            return shell;
        }

        protected override void InitializeModules()
        {
            IModule moduleA = Container.Resolve<Module.ModuleA>();
            //IModule moduleB = Container.Resolve<ModuleB.ModuleB>();

            moduleA.Initialize();
            // moduleB.Initialize();
        }
    }
}
